package http

import (
	"ginfwk/adapter/facade/http/admin"
	"ginfwk/adapter/facade/http/api"
	"ginfwk/framework/core/gins"
	"github.com/gin-gonic/gin"
)

type HttpRouter struct {
	Ctx *gin.Context

	admin.Admin
	api.Api
}

func (a *HttpRouter) Register(r gins.IRoutes) {
	a.Admin.Register(r)
	a.Api.Register(r)
}
